﻿using Sundry.BLL;
using Sundry.IBLL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Remoting.Messaging;
using System.Web;

namespace Sundry.App_Start.Common
{
    public static class EntryService
    {
        /// <summary>
        /// 获取接口服务
        /// </summary>
        /// <returns></returns>
        public static IServiceEntrace GetServiceEntrace()
        {
            IServiceEntrace _serviceEntrace = CallContext.GetData("ServiceEntrace") as ServiceEntrace;
            if (_serviceEntrace == null)
            {
                _serviceEntrace = new ServiceEntrace();
                CallContext.SetData("ServiceEntrace", _serviceEntrace);
            }
            return _serviceEntrace;
        }
    }
}